file = open("bodyCountour.xyz", "r")

x = []
y = []
z = []

content = file.read().split(" ")
index = 0
countourCnt = int(content[index])
index += 1
for i in range(0, countourCnt):
    pointCnt = int(content[index])
    index += 1
    for j in range(0, pointCnt):
        x.append(float(content[index]))
        index += 1
        y.append(float(content[index]))
        index += 1
        z.append(float(content[index]))
        index += 1

import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.scatter(x, y, z)
plt.show()
        
